package me.scotty86.DropChest.api;

import me.scotty86.DropChest.DropChestItem;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class DropChestFillEvent extends Event {
	private DropChestItem chest;
	private static final HandlerList handlers = new HandlerList();

	public DropChestFillEvent(DropChestItem chest) {
		this.chest = chest;
	}

	public HandlerList getHandlers() {
		return handlers;
	}

	public static HandlerList getHandlerList() {
		return handlers;
	}

	public DropChestItem getChest() {
		return this.chest;
	}

	public double getNewFillRate() {
		return this.chest.getPercentFull();
	}
}
